id/email
password
forgot password | create account
about | help | prefs
ReadingBatcode reading practice

 

 

Athenian: Booleansboolean3

prev  |  next  |  chance

Determine if a is greater that 0
by Tracy '23

def true_or_false(a):
    if a > 0:
        return True
    else:
        return False
Function Call  Return Value
true_or_false(5 / 4)
true_or_false(-1 + 2)
true_or_false(0 * -1)
true_or_false(6 - 10)

Experiment with this code on Gitpod.io

⬅ Back